<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
                'id' => 'order-form',
                'enableAjaxValidation' => false,
            ));
    ?>
    <p class="note">Bạn quyết định đặt mua những mặt hàng sau:</p>
    <?php echo $form->errorSummary($model); ?>
    <?php
    $this->beginWidget('zii.widgets.CPortlet',
            array('title' => 'Giỏ hàng'));
    $this->renderPartial('/Cart/list');
    $this->endWidget();    
    ?>      

    <div class="row">
        <?php echo $form->labelEx($model, 'shipment_id'); ?>
        <?php
        $this->widget('application.components.Relation',
                array(
                    'model' => 'Order',
                    'relation' => 'shipment',
                    'fields' => 'name',
                    'style' => 'selectbox')
        );
        ?>
        <?php echo $form->error($model, 'shipment_id'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Mua hàng' : 'Lưu'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->